package cn.tedu.kcircle.detail.infra.converter;

import cn.tedu.kcircle.detail.dao.entity.DetailDO;
import cn.tedu.kcircle.detail.repository.model.DetailAddModel;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

@Component
public class DetailConverter {
    public DetailDO model2DO(DetailAddModel detailAddModel){
        DetailDO detailDO = new DetailDO();
        BeanUtils.copyProperties(detailAddModel,detailDO);
        return detailDO;
    }
}
